import Layout from '@/layout'
import twoLayout from '@/twoLayout'

export default {
  path: '/safeConstruction',
  name: 'safeConstruction',
  redirect: '/safeConstruction/environmental',
  component: Layout,
  alwaysShow: true,
  meta: {
    title: '安全监测',
    roles: ['admin'],
    icon: 'lock'
  },
  children: [
    {
      path: 'environmental',
      name: 'environmental',
      component: () => import(/* webpackChunkName: "environmentalRealTimeData" */'@/views/SafeConstruction/Environmental'),
      meta: {
        title: '环境监测'
      }
    },
    {
      path: 'security',
      name: 'security',
      component: () => import(/* webpackChunkName: "securityRealTimePlayback" */'@/views/SafeConstruction/Security'),
      meta: {
        title: '视频监控'
      }
    },
    {
      path: 'safetyHat',
      name: 'safeConstructionSafetyHat',
      redirect: { path: '/alarmMessage/alarmMessage', query: { id: 5 } },
      meta: {
        title: '安全帽监测'
      }
    }
  ]
}
